<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
if ($sType == "edit")
{
	$aComment = $BigDaddyData->GetCommentByID($_REQUEST["commentID"]);

}

?>
<form name="f" action="query_incident.php" method="post">
<table border="0" cellpadding="3" cellspacing="0" class="incident" width="98%">
<thead>
<th colspan="2">Incident Comment Form: <a href="?page=IncidentView&ID=<?=$aIncident["ID"];?>"><?=$aIncident["title"];?></a></th>
</thead>
<tr valign="top">
	<td>
	<textarea name="comment" rows="15" cols="50" class="fieldtextarea"><?=$aComment["comment"];?></textarea>
	</td>
</tr>

</table>

<div align="center">
<?
if ($sType == "add")
{
	?>
	<input type="hidden" name="action" value="addcomment">
	<input type="hidden" name="incidentID" value="<?=$_REQUEST["incidentID"];?>">
	<?
}
elseif ($sType == "edit")
{
	?>
	<input type="hidden" name="action" value="editcomment">
	<input type="hidden" name="commentID" value="<?=$_REQUEST["commentID"];?>">
	<input type="hidden" name="incidentID" value="<?=$_REQUEST["incidentID"];?>">
	<?
}

?>
</div>
</form>
